home *** CD-ROM | disk | FTP | other *** search
/ ftp.cs.arizona.edu / ftp.cs.arizona.edu.tar / ftp.cs.arizona.edu / icon / newsgrp / group00b.txt / 000120_icon-group-sender_Fri Oct 27 16:25:16 2000.msg < prev    next >
Internet Message Format  |  2001-01-03  |  2KB

  1. Return-Path: <icon-group-sender>
  2. Received: (from root@localhost)
  3.     by baskerville.CS.Arizona.EDU (8.11.1/8.11.1) id e9RNN7r04740
  4.     for icon-group-addresses; Fri, 27 Oct 2000 16:23:07 -0700 (MST)
  5. Message-Id: <200010272323.e9RNN7r04740@baskerville.CS.Arizona.EDU>
  6. From: symbiot@my-deja.com
  7. X-Newsgroups: comp.lang.icon
  8. Subject: Re: Icon beginner
  9. Date: Fri, 27 Oct 2000 19:18:19 GMT
  10. To: kaurp@cs.ucdavis.edu
  11. X-Article-Creation-Date: Fri Oct 27 19:18:19 2000 GMT
  12. X-Http-User-Agent: Mozilla/4.0 (compatible; MSIE 5.0; Windows 95; DigExt)
  13. X-Http-Proxy: 1.0 SRVPROXY, 1.0 x53.deja.com:80 (Squid/1.1.22) for client 208.51.185.226
  14. X-MyDeja-Info: XMYDJUIDsymbiot
  15. To: icon-group@cs.arizona.edu
  16. Errors-To: icon-group-errors@cs.arizona.edu
  17. Status: RO
  18. Content-Length: 1124
  19.  
  20. >From one newbie to another.....
  21.  
  22. Just a a first crack, I'd suggest looking at the upto(c) function. "c"
  23. needs to be a cset.
  24.  
  25. I'm guessing something like....
  26.  
  27. blank := ' '
  28. every sentence ? tab(upto(blank))
  29.  
  30. .....which, I think, will tab you over to each blank in the sentence.
  31. Now, somewhere in there you need to dump the output into a another
  32. string.
  33.  
  34. Anyway, I think that's on the right track.
  35.  
  36. I'd be interested in the responses any of the "expert" have given you.
  37.  
  38. Cheers!
  39.  
  40. In article <Pine.HPP.4.10.10010231150550.1522-
  41. 100000@hp16.cs.ucdavis.edu>,
  42.   Parvinder Kaur <kaurp@cs.ucdavis.edu> wrote:
  43. > Hi,
  44. >   I'm just learning icon and I'm stumped with a particular problem.
  45. I'm
  46. > suppose to delete all occurrences of a space from a sentence, i.e. "Hi
  47. > there" should become "Hithere".  Any ideas of how I should approach
  48. this
  49. > problem.  I tried using the built-in delete proc. but it wasn't
  50. working.
  51. > I'd appreciate any help, thanks!
  52. > -Cos
  53. >
  54. >
  55.  
  56. --
  57. "Wife who put husband in doghouse, soon find him in cathouse."
  58.                             -- Wisdom of the Tao
  59.  
  60.  
  61. Sent via Deja.com http://www.deja.com/
  62. Before you buy.
  63.